<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\admin\validate;

/**
 * 文章验证器
 */
class Forjob extends AdminBase
{
    
    // 验证规则
    protected $rule =   [
        'jobs_name'      => 'require',
        'jobs_num'       => 'require',
        'jobs_addr'      => 'require',
        'qualification'  => 'require',
        'jobs_content'   => 'require',
        'url'            => 'require',
    ];

    // 验证提示
    protected $message  =   [
        'jobs_name'      => '职位名称不能为空',
        'jobs_num'       => '请输入招聘人数',
        'jobs_addr'      => '工作地点不能为空',
        'qualification'  => '任职资格不能为空',
        'jobs_content'   => '工作内容不能为空',
        'url'            => '招聘连接不能为空',
    ];
    
    // 应用场景
    protected $scene = [
        'edit'  =>  ['name', 'content']
    ];
}
